package com.myway.dto.flight;

import com.myway.dto.order.domain.PassengerType;
import com.myway.dto.pricing.DTOFare;
import org.springframework.beans.BeanUtils;

/**
 * @author nl_tan
 *
 */
public class DTOFareDetail extends DTOFare {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8327092604497536692L;
	
	private int passengerCount;
	
	private PassengerType passengerType;
	
	private double netFare;//实际价格

	/**
	 * @return the passengerCount
	 */
	public int getPassengerCount() {
		return this.passengerCount;
	}

	/**
	 * @param passengerCount the passengerCount to set
	 */
	public void setPassengerCount(int passengerCount) {
		this.passengerCount = passengerCount;
	}

	/**
	 * @return the passengerType
	 */
	public PassengerType getPassengerType() {
		return this.passengerType;
	}

	/**
	 * @param passengerType the passengerType to set
	 */
	public void setPassengerType(PassengerType passengerType) {
		this.passengerType = passengerType;
	}
	
	

	/**
	 * @return the netFare
	 */
	public double getNetFare() {
		return this.netFare;
	}

	/**
	 * @param netFare the netFare to set
	 */
	public void setNetFare(double netFare) {
		this.netFare = netFare;
	}

	/**
	 * 
	 */
	public DTOFareDetail() {
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param passengerCount
	 * @param passengerType
	 */
	public DTOFareDetail(int passengerCount, PassengerType passengerType,DTOFare fare) {
		BeanUtils.copyProperties(fare, this);
		this.passengerCount = passengerCount;
		this.passengerType = passengerType;
		this.netFare=fare.getFarePrice();
	}
	
	

}
